package com.xl.gradledemo

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner

object ViewModleFactory {

    fun  createModle(owner: ViewModelStoreOwner, clazz: Class<out ViewModel >): ViewModel {
        return ViewModelProvider(owner).get(clazz)
    }

}